package edu.scau.tool.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Data
@Component
public class Logs implements Serializable {
    private static final long serialVersionUID = 1L;
    private int id;
    @Schema(name = "funtionName",description = "执行模块方法")
    private String funtionName;
    @Schema(name = "funtionType",description = "方法类型",example = "GET/POST")
    private String funtionType;
    @Schema(name = "requestUrl",description = "请求接口路径")
    private String requestUrl;
    @Schema(name = "duration",description = "查询耗时")
    private long duration;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;

    public Logs(int id, String funtionName, String funtionType, String requestUrl, long duration, String createBy, Date createTime, String updateBy, Date updateTime) {
        this.id = id;
        this.funtionName = funtionName;
        this.funtionType = funtionType;
        this.requestUrl = requestUrl;
        this.duration = duration;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
    }

    public Logs() {
    }
}
